namespace Common {
    using System;
    using System.Collections.Generic;

    public class JSONObject : Dictionary<string, object> {
        public void Add(string string_0, object value) {
            if (value.GetType().Name == "String") {
                value = JSONEncode.StrEncodeForDeserialize(value.ToString());
            }
            base.Add(string_0, value);
        }

        public static JSONObject FromObject(string json) {
            return JsonHelper.DeserializeObject(json);
        }

        public override string ToString() {
            return JsonHelper.SerializeObject(this);
        }
    }
}

